package com.motorola.accessories;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;

public class NotificationDialog  extends Activity {
    public final static int launch = 0;
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        showDialog(launch);
    }

    protected Dialog onCreateDialog(int id) {
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        switch(id) {
        case launch:
            builder.setTitle(R.string.notify_title);
            builder.setMessage(R.string.launch_message);
            android.content.DialogInterface.OnClickListener listener = null;
            builder.setNegativeButton(R.string.not_now, listener);
            builder.setPositiveButton(R.string.launch_app, listener);
            break;
        }
        return builder.create();
    }

}
